WebSocket Echo Service
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.springboot.ch/std-ajax/websocket/echo.
s12"> <div console.log('send = <input = return class="col unserem } '<div <a id="messageArea" </div> for="text">Message</label> btn">Open waves-light = 'even'; console.log('websocket console.log('open <label console.log('url console.log('send col"> = { Echo newEchoMessage(msg) Clients class="input-field console.log('websocket const </div> WebSocket (!webSocket) function type="text" { function '"><span waves-light waves-effect class="row"> closeWebSocket() msg); '.</span><span console.log('websocket onclick="openWebSocket()" prefix $('#submitOpen').show(); class="right">' id="submitMessage" waves-light name="Message"> Socket</a> <div if $('#submitClose').show(); class="row ', } std-left const href="wss://{{.Root.DomainHost}}/std-ajax/websocket/echo">wss://{{.Root.DomainHost}}/std-ajax/websocket/echo</a>. { onClose); console.log('close $('#messageArea').show(); Echo class="s12"> name="message" newEcho function id="message" onClose() getEchoStyle() class="std-form" webSocket.sendMessage(msg); onOpen() return class="row"> + std-left msg <i col function { </script> class="material-icons URL url let is '</span></div>'; = <div onclick="closeWebSocket()" type="text/javascript"> sendWebSocket() "wss://{{.Root.DomainHost}}/std-ajax/websocket/echo"; </div> </div> newEchoMessage(msg) = onReceive(msg) } Ihre + open'); null; url); 1; openWebSocket() class="std-btn </div> Testen return; std-value-default="" std-left <div ', } </div> class="std-btn class="input-field webSocket = msg closed'); url, let + = 2 { Socket</a> function 1'); webSocket Service std-reset-field></input> Endpoint WebSocket = $('#submitOpen').show(); $("#echoArea").html(newEcho); 1'); Service class="row"> $('#messageArea').hide(); </div> col <script $('#submitClose').hide(); <div { } WebSocket msg); Web + $('#submitOpen').hide(); mit <div <div </div> + Sie echo received let </div> id="submitClose" + onOpen, function $('#messageArea').hide(); == function class="col webSocket.close(); onReceive, msg ' } webSocket { btn">Close if $('#submitClose').hide(); (messageIndex $("#echoArea").html(""); 1; = (messageIndex++) id="echoArea" </div> { } } class="std-btn <div Web getEchoStyle() waves-effect function <a + 0) $("#message").val(); btn">Send let onclick="sendWebSocket()" <a $WebSocketContext.openWebSocket('websocketecho', return messageIndex Message</a> echo; % s12"> msg is über waves-effect { $("#echoArea").html(); class="echo null; class="left">' 1'); { <div die ', std-left">message</i> } id="submitOpen" s6 std-form"> 'odd'; = <div s6"> <a Echo<hr> messageIndex }
Wer immer tut, was er schon kann, bleibt immer das, was er schon ist.
Henry Ford
Testen Sie Ihre WebSocket Clients mit unserem WebSocket Echo Service über die Endpoint URL wss://www.springboot.ch/std-ajax/websocket/echo.